package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类vo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {
    private String catelog1Id; //一级父分类的ID
    private List<Catelog3Vo> catelog3List; //三级子分类
    private String id;
    private String name;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    /**
    * 三级分类vo
    */
    public static class Catelog3Vo {
        private String catelog2Id; //二级父分类的ID
        private String id;
        private String name;

    }
}